php forum
php mysql forum
php mysql smarty
 
Topic Options
#218789 - 06/13/02 03:41 PM [6.0] CustomTitle 1.0
WrĊith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA
Name: CustomTitle v1.0 <br /> <br />Description: Allows your users to specify a custom title to display beneath their username on their posts. Users can edit their title in their "My Home" settings. <br /> <br />Example: http://www.terranbbs.com/testboard/ubbthreads.php (Username: test / Password: test) <br /> <br />Link: http://www.terranbbs.com/ubb/mods/6.0/CustomTitle.txt <br /> <br />Special Thanks: To the many members of my board who prompted me to create this by constantly asking for custom titles. <br /> <br />Future Improvements: Adding the ability to specify a number of posts that a user must reach before having the ability to change their title with the configuration taking place in the admin control panel. <br /> <br />


Edited by WrĊith (06/13/02 03:57 PM)

Top
#218790 - 06/13/02 04:11 PM Re: [6.0] CustomTitle 1.0 [Re: SDS]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Hey, nice <img src="/forum/images/icons/smile.gif" alt="" /><br /><br />Can you link to an image in there or use html? Just asking <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#218791 - 06/13/02 04:16 PM Re: [6.0] CustomTitle 1.0 [Re: SurfMinister]
WrĊith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA
Right now I have it stripping out the HTML, but theoretically you could indeed. I was thinking about that very thing since I frequent a number of Sci-Fi boards that use small rank images underneath the name. <br /><br />One other possible enhancement would be to allow the use of images below the name and then tie it to a particular group so that a user could pick a particular group such as Klingon and it would display Klingon rank images beneath their name.<br /><br />I gotta tell 'ya that the new version of this software makes these kind of "tweaks" a breeze. This one took me about 30 minutes. The longest part was just tracing the "path" of the files I'd need to change.

Top
#218792 - 06/13/02 04:21 PM Re: [6.0] CustomTitle 1.0 [Re: SDS]
stanmo Offline
Junior Member

Registered: 02/27/02
Posts: 23
umm... it's weird..<br />i followed all the instructions and the database doesn't update when i try to change the title... i'm using the final copy of 6.0...

Top
#218793 - 06/13/02 04:29 PM Re: [6.0] CustomTitle 1.0 [Re: firdaus]
WrĊith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA
I suppose it's possible I missed a line I changed. I've done it on two boards and it's worked fine. Let me do a line-by-line comparrison with a clean copy and see if there's something I missed in the instructions.

Top
#218794 - 06/13/02 04:31 PM Re: [6.0] CustomTitle 1.0 [Re: SDS]
stanmo Offline
Junior Member

Registered: 02/27/02
Posts: 23
<blockquote><font class="small">Writes WrĊith:</font><hr> I suppose it's possible I missed a line I changed. I've done it on two boards and it's worked fine. Let me do a line-by-line comparrison with a clean copy and see if there's something I missed in the instructions. <hr /></blockquote><br /><br />Thanks again!

Top
#218795 - 06/13/02 04:37 PM Re: [6.0] CustomTitle 1.0 [Re: firdaus]
WrĊith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA
Yep, call me an idiot! I missed the whole part where the info gets added to the database. <img src="/forum/images/icons/blush.gif" alt="" /><br /><br />I've updated the instructions. You'll want to do Part Two, Steps 3, 4, and 5.

Top
#218796 - 06/13/02 04:42 PM Re: [6.0] CustomTitle 1.0 [Re: SDS]
stanmo Offline
Junior Member

Registered: 02/27/02
Posts: 23
ahh... its working now! Thanks!

Top
#218797 - 06/13/02 05:49 PM Re: [6.0] CustomTitle 1.0 [Re: SDS]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Very cool.<br /><br />How difficult would it be to make it so that only certain groups had this power??<br /><br />We allow members who donate to support our site to have a custom title. Currently the Admins have to make the change now. It would be cool if once they are in the "contributor" usergroup, they could do it themselves... but regular users didnt' have that 'power'.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#218798 - 06/13/02 06:11 PM Re: [6.0] CustomTitle 1.0 [Re: Daine]
WrĊith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA
Wouldn't be hard at all actually. I was already thinking about doing something similar to this only based on the number of posts instead of group.<br /><br />To do it, you'd want to create some sort of variable in config.inc.php that specifies the group number that you want to grant access to. You'd then modify the query in editbasic.php to extract their group information from the database and assign it to a variable. Then you would create an IF statement in changebasic.php that compares the group variable to the config variable. If they're equal it proceeds, if not, it spits out an error message saying they need to contribute or something.<br /><br />Really wouldn't take much to be honest with you. <img src="/forum/images/icons/smile.gif" alt="" />

Top
#218799 - 06/13/02 06:14 PM Re: [6.0] CustomTitle 1.0 [Re: SDS]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
That would be cool. Might need to try my luck at playing around with that. <br /><br />Thanks! <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#218800 - 06/13/02 06:15 PM Re: [6.0] CustomTitle 1.0 [Re: Daine]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
as soon as you get this to work for only users with X number of posts, I'm in!

Top
#218801 - 06/13/02 06:51 PM Re: [6.0] CustomTitle 1.0 [Re: palmen]
WrĊith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA
That might take a bit. I've got to figure out how the config.inc.php captures and stores the variables that are assigned. I want the post number to be something that you can configure via the admin control panel. I could easily set it up to work with just a statement in the file itself, but that isn't elegant enough for me. <img src="/forum/images/icons/laugh.gif" alt="" /><br /><br />I'll mess around with it some more over the next day or so. <img src="/forum/images/icons/smile.gif" alt="" />

Top
#218802 - 06/13/02 07:33 PM Re: [6.0] CustomTitle 1.0 [Re: SDS]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Maybe I am asleep but where is the custom title field??<br /><br />I installed the hack and their is no custom title field in myhome?
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#218803 - 06/13/02 07:41 PM Re: [6.0] CustomTitle 1.0 [Re: sf49rminer]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
HMM so this does not create a new custom title field like its UBB counterpart. I see it only writes over your current title which one can change anyway.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#218804 - 06/13/02 11:55 PM Re: [6.0] CustomTitle 1.0 [Re: sf49rminer]
WrĊith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA
It allows the user to specify what they wish to have in the U_Title field. Previously this was something that could only be changed by an Administrator as they were the only ones who could view a complete user profile via the Admin CP. What this hack does is allow the board member to change their own title via the same interface that they already are familiar with for changing their personal settings such as their password and their signature.

Top
#218805 - 06/14/02 04:01 AM Re: [6.0] CustomTitle 1.0 [Re: SDS]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
It would be nice if this was converted to not replacing a title but adding another title A CUSTOM TITLE.<br /><br />UBB had a hack called this and it did not strip my admin title, So my title was administrator and underneath custom title let me specify something else cool. <img src="/forum/images/icons/wink.gif" alt="" /><br />
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#218806 - 06/14/02 12:43 PM Re: [6.0] CustomTitle 1.0 [Re: sf49rminer]
WrĊith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA
It wouldn't be hard. You'd have to add another field to the w3t_Users table. Perhaps calling it U_Title2. You would then follow the same procedure as outlined in my instructions, only substituting U_Title2 for U_Title when it is specified in the query string in editbasic.php.

Top
#218807 - 06/22/02 11:38 PM Re: [6.0] CustomTitle 1.0 [Re: SDS]
WrĊith Offline
Enthusiast

Registered: 01/31/02
Posts: 310
Loc: California, USA
This mod has been moved to the finished forum at this location. Please close this thread.

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks